<?php
namespace app\api\controller;

class Test extends Base
{

    
    public function test()
    {
        $param = $this->param;
        ksort($param); //按字典序排序参数
        $string = "";
        $string = urldecode(http_build_query($param));
        //签名步骤二：在string后加入KEY
        $string = $string . "&key=ShouMai2019";
        //签名步骤三：MD5加密
        $string = md5($string);
        //签名步骤四：所有字符转为大写
        $result = strtoupper($string);
       
        echo $result;
    }

    
}
